home *** CD-ROM | disk | FTP | other *** search
Wrap
property First_Name, Surname, Address, EMail, AffiliationID, AffiliationPassword, Receive_Info, Trusted, Cookie, theNetID global DBPath on exitFrame me if voidp(theNetID) or (theNetID = 0) then First_Name = getVariable(sprite(1), "FirstName") Surname = getVariable(sprite(1), "Surname") Address = getVariable(sprite(1), "Address") EMail = getVariable(sprite(1), "EMail") Password = getVariable(sprite(1), "Password") AffiliationID = getVariable(sprite(1), "AffiliationID") AffiliationPassword = getVariable(sprite(1), "AffiliationPassword") Receive_Info = getVariable(sprite(1), "ReceiveInfo") Trusted = getVariable(sprite(1), "Trusted") Cookie = getVariable(sprite(1), "Cookie") theStr = "http://66.155.19.43/members/MemberDetails.asp?" & urlEncode([#First_Name: First_Name, #Surname: Surname, #Address: Address, #EMail: EMail, #AffiliationID: AffiliationID, #AffiliationPassword: AffiliationPassword, #Receive_Info: Receive_Info, #Trusted: Trusted.value, #Cookie: Cookie.value, #Password: Password]) theNetID = getNetText(theStr) end if if netDone(theNetID) then if netTextresult(theNetID) <> EMPTY then db = DGOpenDatabase(DBPath & "FlyBox.mdb", 0, 0, ";PWD=StopLooking") Password = netTextresult(theNetID) setVariable(sprite(1), "Password", Password) DGExecute("UPDATE Registration SET FirstName = '" & CheckQuotes(First_Name) & "', Surname = '" & CheckQuotes(Surname) & "', Address = '" & CheckQuotes(Address) & "', EMail = '" & CheckQuotes(EMail) & "', Password = '" & CheckQuotes(Password) & "', AffiliationID = '" & CheckQuotes(AffiliationID) & "', AffiliationPassword = '" & CheckQuotes(AffiliationPassword) & "', ReceiveInfo = " & Receive_Info.value & ", Trusted = " & Trusted.value & ", StoreCookie = " & Cookie.value, db) DGClose(db) alert("Your details have been updated successfully.") else alert("There has been a problem contacting the Flybox web-site. Please ensure that:" & RETURN & RETURN & "1. You are connected to the Internet." & RETURN & "2. If you are behind a firewall that you have permissions to access the Internet.") end if theNetID = VOID setVariable(sprite(1), "Finished", "T") go("Finished") else go(the frame) end if end on CheckQuotes theString num = length(theString) repeat with i = 1 to num if theString.char[i] = "'" then NewString = NewString & "''" next repeat end if NewString = NewString & theString.char[i] end repeat return NewString end